import UrlHooks from "../../pages/ruijing/common/utils/urlHook.js";
// import logoUrl from "../images/logo-edi.png";
import logo from "@assets/logo.png";

export default function LoginForHeader(props) {
    let thirdLoginSite = ["hms", "whse"];
    if (props.hide) {
        return null;
    }
    if (Uts.contain(thirdLoginSite, props.loginSite)) {
        return <div className="zen_w-p100 zen_h-100 hms_bg-green" />;
    } else {
        return (
            <div className="zen_w-p100 zen_h-100 zen_p-t-27 zen_bg-white">
                <div className="content-wrap">
                    <span
                        onClick={e => {
                            $state.to(`/`);
                        }}
                        className={"zen_cur-p"}
                    >
                        <img
                            className="zen_il-bl zen_w-257 zen_h-47"
                            src={logo}
                        />
                    </span>
                </div>
            </div>
        );
    }
}
